/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.fee.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeeplus.core.persistence.Page;
import com.jeeplus.core.service.CrudService;
import com.jeeplus.modules.fee.entity.NewRe;
import com.jeeplus.modules.fee.mapper.NewReMapper;

/**
 * 应收Service
 * @author 李超辉
 * @version 2019-05-22
 */
@Service
@Transactional(readOnly = true)
public class NewReService extends CrudService<NewReMapper, NewRe> {

	public NewRe get(String id) {
		return super.get(id);
	}
	
	public List<NewRe> findList(NewRe newRe) {
		return super.findList(newRe);
	}
	public List<NewRe> findList1(NewRe newRe) {
		return mapper.findList1(newRe);
	}
	public Page<NewRe> findPage(Page<NewRe> page, NewRe newRe) {
		return super.findPage(page, newRe);
	}
	public Page<NewRe> findPage1(Page<NewRe> page, NewRe newRe) {
		List<NewRe> liat=getListBypro();
		page.setList(liat);
		return page;
	}

	public Page<NewRe> findPage2(Page<NewRe> page, NewRe newRe) {
		List<NewRe> liat=getListBybsc();
		page.setList(liat);
		return page;
	}

	public Page<NewRe> findPage3(Page<NewRe> page, NewRe newRe) {
		List<NewRe> liat=getListByyear();
		page.setList(liat);
		return page;
	}

	public Page<NewRe> findPage4(Page<NewRe> page, NewRe newRe) {
		List<NewRe> liat=getListByYue();
		page.setList(liat);
		return page;
	}
	public List<NewRe> getListByYue(){
		return  mapper.getListByYue();
	};
	public List<NewRe> getListBypro(){
		return  mapper.getListBypro();
	};
	public List<NewRe> getListBybsc(){
		return  mapper.getListBybsc();
	};
	public List<NewRe> getListByyear(){
		return  mapper.getListByyear();
	};
	@Transactional(readOnly = false)
	public void save(NewRe newRe) {
		super.save(newRe);
	}
	
	@Transactional(readOnly = false)
	public void delete(NewRe newRe) {
		super.delete(newRe);
	}
	
}